package com.bingxue.edu.common.enums;

import com.bingxue.edu.framework.enums.Dict;
import com.bingxue.edu.framework.enums.DictEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import com.mybatisflex.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 班级状态
 * @author panbo
 * @since 2024/8/1
 */
@Getter
@AllArgsConstructor
@Dict("班级状态")
public enum ClassStatusEnum implements DictEnum<Integer> {
    WAITING(0, "未开课", "default"),
    TEACHING(1, "上课中", "processing"),
    COMPLETED(2, "已结课", "green"),
    CLOSED(3, "已关班", "red");

    @JsonValue
    @EnumValue
    private final Integer value;
    private final String label;
    private final String color;
}
